
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Linux服务器 · AGou's StudyNote</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="AGou">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Linux状态信息.html" />
    
    
    <link rel="prev" href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://agou-ops.github.io" target="_blank" class="custom-link">◆点击进入我的个人博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.1.</b>
                    
                    关于我
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Program_lang/">
            
                <a href="../Program_lang/">
            
                    
                        <b>1.2.</b>
                    
                    编程语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Program_lang/Python.html">
            
                <a href="../Program_lang/Python.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Python
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Program_lang/Java.html">
            
                <a href="../Program_lang/Java.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Java
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Program_lang/Splash_Lua.html">
            
                <a href="../Program_lang/Splash_Lua.html">
            
                    
                        <b>1.2.3.</b>
                    
                    Splash_Lua
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Database/">
            
                <a href="../Database/">
            
                    
                        <b>1.3.</b>
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Database/Mysql、MariaDB/README.md">
            
                <span>
            
                    
                        <b>1.3.1.</b>
                    
                    Mysql/MariaDB
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                <a href="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                    
                        <b>1.3.1.1.</b>
                    
                    MySQL/MariaDB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../Database/Mysql、MariaDB/php-mysql.html">
            
                <a href="../Database/Mysql、MariaDB/php-mysql.html">
            
                    
                        <b>1.3.1.2.</b>
                    
                    php-mysql
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Database/MongoDB.html">
            
                <a href="../Database/MongoDB.html">
            
                    
                        <b>1.3.2.</b>
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Database/Redis.html">
            
                <a href="../Database/Redis.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.4.</b>
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Linux基础.html">
            
                <a href="Linux基础.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Linux基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                <a href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Linux启动流程、内核、grub、模块等
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.3" data-path="Linux服务器.html">
            
                <a href="Linux服务器.html">
            
                    
                        <b>1.4.3.</b>
                    
                    Linux服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Linux状态信息.html">
            
                <a href="Linux状态信息.html">
            
                    
                        <b>1.4.4.</b>
                    
                    Linux状态信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="Linux网络客户端工具.html">
            
                <a href="Linux网络客户端工具.html">
            
                    
                        <b>1.4.5.</b>
                    
                    Linux网络客户端工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Linux网络配置.html">
            
                <a href="Linux网络配置.html">
            
                    
                        <b>1.4.6.</b>
                    
                    Linux网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Linux配置文件.md">
            
                <span>
            
                    
                        <b>1.4.7.</b>
                    
                    Linux配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="Linux时间服务器.html">
            
                <a href="Linux时间服务器.html">
            
                    
                        <b>1.4.8.</b>
                    
                    Linux时间服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="Linux日志管理系统.html">
            
                <a href="Linux日志管理系统.html">
            
                    
                        <b>1.4.9.</b>
                    
                    Linux日志管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="sudo详解.html">
            
                <a href="sudo详解.html">
            
                    
                        <b>1.4.10.</b>
                    
                    sudo详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="SElinux.html">
            
                <a href="SElinux.html">
            
                    
                        <b>1.4.11.</b>
                    
                    SELinux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="iptables.html">
            
                <a href="iptables.html">
            
                    
                        <b>1.4.12.</b>
                    
                    iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="Linux_shell.html">
            
                <a href="Linux_shell.html">
            
                    
                        <b>1.4.13.</b>
                    
                    Linux Shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="shell_awk.html">
            
                <a href="shell_awk.html">
            
                    
                        <b>1.4.14.</b>
                    
                    shell_awk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="OpenSSL、PKI搭建、算法.html">
            
                <a href="OpenSSL、PKI搭建、算法.html">
            
                    
                        <b>1.4.15.</b>
                    
                    OpenSSL、PKI搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="DNS服务器.html">
            
                <a href="DNS服务器.html">
            
                    
                        <b>1.4.16.</b>
                    
                    DNS服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="Frp内网穿透.html">
            
                <a href="Frp内网穿透.html">
            
                    
                        <b>1.4.17.</b>
                    
                    Frp内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="Linux其他.md">
            
                <span>
            
                    
                        <b>1.4.18.</b>
                    
                    Linux其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Linux_FileSystem/">
            
                <a href="../Linux_FileSystem/">
            
                    
                        <b>1.5.</b>
                    
                    Linux文件系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Linux_FileSystem/FTP.html">
            
                <a href="../Linux_FileSystem/FTP.html">
            
                    
                        <b>1.5.1.</b>
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Linux_FileSystem/SAMBA.html">
            
                <a href="../Linux_FileSystem/SAMBA.html">
            
                    
                        <b>1.5.2.</b>
                    
                    SAMBA
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Linux_Tools/">
            
                <a href="../Linux_Tools/">
            
                    
                        <b>1.6.</b>
                    
                    Linux工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Linux_Tools/fzf工具.html">
            
                <a href="../Linux_Tools/fzf工具.html">
            
                    
                        <b>1.6.1.</b>
                    
                    fzf工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Linux_Tools/工具集合.html">
            
                <a href="../Linux_Tools/工具集合.html">
            
                    
                        <b>1.6.2.</b>
                    
                    Linux工具集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../WEB_Server/">
            
                <a href="../WEB_Server/">
            
                    
                        <b>1.7.</b>
                    
                    网站服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../WEB_Server/HTML基础.html">
            
                <a href="../WEB_Server/HTML基础.html">
            
                    
                        <b>1.7.1.</b>
                    
                    HTML基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../WEB_Server/WEB基础.html">
            
                <a href="../WEB_Server/WEB基础.html">
            
                    
                        <b>1.7.2.</b>
                    
                    WEB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../WEB_Server/httpd.html">
            
                <a href="../WEB_Server/httpd.html">
            
                    
                        <b>1.7.3.</b>
                    
                    httpd/Apache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../WEB_Server/httpd.conf文件详解.html">
            
                <a href="../WEB_Server/httpd.conf文件详解.html">
            
                    
                        <b>1.7.4.</b>
                    
                    httpd.conf文件详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../WEB_Server/Nginx.html">
            
                <a href="../WEB_Server/Nginx.html">
            
                    
                        <b>1.7.5.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../WEB_Server/HTTP状态码-详情.html">
            
                <a href="../WEB_Server/HTTP状态码-详情.html">
            
                    
                        <b>1.7.6.</b>
                    
                    HTTP状态码-详情
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Common_Framework/">
            
                <a href="../Common_Framework/">
            
                    
                        <b>1.8.</b>
                    
                    常用框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Common_Framework/LNMP.html">
            
                <a href="../Common_Framework/LNMP.html">
            
                    
                        <b>1.8.1.</b>
                    
                    LNMP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Common_Framework/LAMP.html">
            
                <a href="../Common_Framework/LAMP.html">
            
                    
                        <b>1.8.2.</b>
                    
                    LAMP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker&K8s/">
            
                <a href="../Docker&K8s/">
            
                    
                        <b>1.9.</b>
                    
                    容器及容器编排
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.1.</b>
                    
                    Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker&K8s/K8s/">
            
                <a href="../Docker&K8s/K8s/">
            
                    
                        <b>1.9.2.</b>
                    
                    K8s
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.2.1" data-path="../Docker&K8s/K8s/K8s基础知识.html">
            
                <a href="../Docker&K8s/K8s/K8s基础知识.html">
            
                    
                        <b>1.9.2.1.</b>
                    
                    K8s基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2.2" data-path="../Docker&K8s/K8s/K8s安装与部署.html">
            
                <a href="../Docker&K8s/K8s/K8s安装与部署.html">
            
                    
                        <b>1.9.2.2.</b>
                    
                    K8s安装与部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                        <b>1.10.</b>
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/Git基础.html">
            
                <a href="../Git/Git基础.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Git基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/GitLab服务器.html">
            
                <a href="../Git/GitLab服务器.html">
            
                    
                        <b>1.10.2.</b>
                    
                    GitLab服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Windows/">
            
                <a href="../Windows/">
            
                    
                        <b>1.11.</b>
                    
                    Windows系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Windows/cmd命令.html">
            
                <a href="../Windows/cmd命令.html">
            
                    
                        <b>1.11.1.</b>
                    
                    cmd命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../Vim.html">
            
                <a href="../Vim.html">
            
                    
                        <b>1.12.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../i3WM快捷键.html">
            
                <a href="../i3WM快捷键.html">
            
                    
                        <b>1.13.</b>
                    
                    i3WM快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../ADB命令.html">
            
                <a href="../ADB命令.html">
            
                    
                        <b>1.14.</b>
                    
                    ADB命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../Tmux.html">
            
                <a href="../Tmux.html">
            
                    
                        <b>1.15.</b>
                    
                    Tmux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../Kindle.html">
            
                <a href="../Kindle.html">
            
                    
                        <b>1.16.</b>
                    
                    Kindle越狱指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Other/">
            
                <a href="../Other/">
            
                    
                        <b>1.17.</b>
                    
                    Other
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Other/pandoc.html">
            
                <a href="../Other/pandoc.html">
            
                    
                        <b>1.17.1.</b>
                    
                    pandoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Other/jupyter&reveal.js.html">
            
                <a href="../Other/jupyter&reveal.js.html">
            
                    
                        <b>1.17.2.</b>
                    
                    jupyter & reveal.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../Other/json.html">
            
                <a href="../Other/json.html">
            
                    
                        <b>1.17.3.</b>
                    
                    json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../Other/Reveal_js.html">
            
                <a href="../Other/Reveal_js.html">
            
                    
                        <b>1.17.4.</b>
                    
                    Reveal_js
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Linux服务器</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#&#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;md">1. &#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;(&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;.md)</a></li><li><a href="#&#x4F7F;&#x7528;ssh&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;&#x5176;&#x4ED6;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;">2. &#x4F7F;&#x7528;ssh&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;&#x5176;&#x4ED6;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;</a></li><li><a href="#centos&#x6700;&#x5C0F;&#x5316;&#x5B89;&#x88C5;&#x4E2D;&#x4F7F;&#x7528;gnome&#x684C;&#x9762;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;vnc&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x8FDE;&#x63A5;&#xFF08;&#x5176;&#x4ED6;&#x684C;&#x9762;&#x73AF;&#x5883;&#xFF09;">3. CentOS&#x6700;&#x5C0F;&#x5316;&#x5B89;&#x88C5;&#x4E2D;&#x4F7F;&#x7528;gnome&#x684C;&#x9762;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;VNC&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x8FDE;&#x63A5;&#xFF08;&#x5176;&#x4ED6;&#x684C;&#x9762;&#x73AF;&#x5883;&#xFF09;</a></li><li><a href="#nginx&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#x73AF;&#x5883;centos7">4. nginx&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;(&#x73AF;&#x5883;CentOS7)</a></li><ul><li><a href="#&#x4F7F;&#x7528;&#x6E90;&#x7801;&#x5B89;&#x88C5;">4.1. &#x4F7F;&#x7528;&#x6E90;&#x7801;&#x5B89;&#x88C5;</a></li><li><a href="#&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;">4.2. &#x4F7F;&#x7528;YUM&#x5B89;&#x88C5;</a></li><li><a href="#&#x57FA;&#x7840;&#x7528;&#x6CD5;">4.3. &#x57FA;&#x7840;&#x7528;&#x6CD5;</a></li><li><a href="#&#x5176;&#x4ED6;&#x8BBE;&#x7F6E;">4.4. &#x5176;&#x4ED6;&#x8BBE;&#x7F6E;</a></li><ul><li><a href="#&#x5F00;&#x673A;&#x81EA;&#x542F;&#x52A8;">4.4.1. &#x5F00;&#x673A;&#x81EA;&#x542F;&#x52A8;</a></li></ul><li><a href="#&#x6DFB;&#x52A0;&#x4E3A;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;">4.5. &#x6DFB;&#x52A0;&#x4E3A;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;</a></li></ul><li><a href="#apache&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#xFF08;&#x5B89;&#x88C5;&#x73AF;&#x5883;centos7&#xFF09;">5. Apache&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#xFF08;&#x5B89;&#x88C5;&#x73AF;&#x5883;CentOS7&#xFF09;</a></li><ul><li><a href="#&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;">5.1. &#x4F7F;&#x7528;YUM&#x5B89;&#x88C5;</a></li><li><a href="#&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BE6;&#x60C5;">5.2. &#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BE6;&#x60C5;</a></li><li><a href="#apache&#x7684;&#x4F7F;&#x7528;">5.3. Apache&#x7684;&#x4F7F;&#x7528;</a></li></ul><li><a href="#dhcp&#x670D;&#x52A1;">6. DHCP&#x670D;&#x52A1;</a></li></ul></div><a href="#&#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;md" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><blockquote>
<p><strong>This is Linux&#x670D;&#x52A1;&#x5668; StudyNote.</strong></p>
</blockquote>
<h1 id="&#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;md"><a name="&#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;md" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;md"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x67E5;&#x770B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x53E3;(&#x7AEF;&#x53E3;&#x5360;&#x7528;&#x68C0;&#x6D4B;.md)</h1>
<pre class="language-"><code>netstat -tunlp|grep [&#x670D;&#x52A1;]    # t:tcp    u:udp    n:&#x4EC5;&#x663E;&#x793A;&#x5730;&#x5740;,&#x800C;&#x4E0D;&#x663E;&#x793A;&#x4E3B;&#x673A;&#x540D;,&#x53EF;&#x52A0;&#x901F;&#x67E5;&#x8BE2;&#x901F;&#x5EA6;    l:Listen    p:&#x663E;&#x793A;&#x5EFA;&#x7ACB;&#x76F8;&#x5173;&#x94FE;&#x63A5;&#x7684;&#x7A0B;&#x5E8F;&#x540D;    
nmap localhost    # &#x626B;&#x63CF;&#x672C;&#x673A;&#x6240;&#x542F;&#x7528;&#x7684;&#x7AEF;&#x53E3;,&#x9ED8;&#x8BA4;&#x53EA;&#x626B;&#x63CF;TCP
nmap -sTU localhost    # s:scan    T:tcp    u:udp    &#x5176;&#x4ED6;&#x53C2;&#x6570;:-sP:&#x4EE5;ping&#x65B9;&#x5F0F;&#x626B;&#x63CF;    -sO:&#x4EE5;ip&#x534F;&#x8BAE;&#x8FDB;&#x884C;&#x626B;&#x63CF;    -PT:&#x4F7F;&#x7528;TCP&#x91CC;&#x9762;&#x7684;ping    -PI:&#x4F7F;&#x7528;ping(&#x5E26;&#x6709;ICMP&#x6570;&#x636E;&#x5305;)&#x6765;&#x8FDB;&#x884C;&#x626B;&#x63CF;
</code></pre><ul>
<li><p>netcat&#x547D;&#x4EE4;</p>
<p>  lsof -i:[&#x7AEF;&#x53E3;&#x53F7;port]    # &#x67E5;&#x770B;&#x5F53;&#x524D;&#x7528;&#x6237;&#x7684;&#x7AEF;&#x53E3;&#x6240;&#x5BF9;&#x5E94;&#x7684;&#x76F8;&#x5173;&#x4FE1;&#x606F;,&#x4E0D;&#x52A0;:<port>&#x626B;&#x63CF;&#x5168;&#x90E8;</port></p>
</li>
</ul>
<h1 id="&#x4F7F;&#x7528;ssh&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;&#x5176;&#x4ED6;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;"><a name="&#x4F7F;&#x7528;ssh&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;&#x5176;&#x4ED6;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;ssh&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;&#x5176;&#x4ED6;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x4F7F;&#x7528;ssh&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;&#x5176;&#x4ED6;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;</h1>
<ul>
<li><p>&#x4F7F;&#x7528;ssh-keygen&#x547D;&#x4EE4;&#x6765;&#x751F;&#x6210;&#x79C1;&#x94A5;&#x548C;&#x516C;&#x94A5;</p>
<pre class="language-"><code class="lang-bash">ssh-keygen <span class="token punctuation">(</span>-t rsa/dsa<span class="token punctuation">)</span> &#x9ED8;&#x8BA4;&#x4E3A;rsa&#x52A0;&#x5BC6;&#x65B9;&#x5F0F;
<span class="token comment"># &#x751F;&#x6210;&#x7684;&#x516C;&#x94A5;&#x79C1;&#x94A5;&#x653E;&#x7F6E;&#x4E8E;&#x5BB6;&#x76EE;&#x5F55;&#x7684;.ssh&#x76EE;&#x5F55;&#x5F53;&#x4E2D;</span>
</code></pre>
</li>
<li><p>&#x5C06;&#x751F;&#x6210;&#x7684;&#x516C;&#x94A5;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;&#x5E76;&#x9644;&#x52A0;&#x5230;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x7684;&#x4FE1;&#x4EFB;&#x6587;&#x4EF6;&#x5F53;&#x4E2D;&#x53BB;</p>
<pre class="language-"><code class="lang-bash"><span class="token comment"># Ubuntu &#x7CFB;&#x7EDF;&#x4E0B;&#x662F;known_hosts</span>
<span class="token function">cat</span> id_rsa.pub <span class="token operator">&gt;&gt;</span> known_hosts
<span class="token comment"># &#x7136;&#x800C;&#x5728;CentOS&#x7CFB;&#x7EDF;&#x4E0B;&#x6587;&#x4EF6;&#x662F;authorized_keys</span>
<span class="token function">cat</span> id_rsa.pub <span class="token operator">&gt;&gt;</span> authorized_keys
</code></pre>
</li>
<li><p>&#x4F7F;&#x7528;scp&#x4E0A;&#x5E8A;&#x5230;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#xFF0C;&#x6216;&#x8005;&#x4F7F;&#x7528;<code>ssh-copy-id -i /root/.ssh/id_rsa.pub centos</code>&#x81EA;&#x52A8;&#x4E0A;&#x4F20;&#x5230;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x7684;&#x76F8;&#x5E94;&#x6587;&#x4EF6;&#x5F53;&#x4E2D;&#x53BB;</p>
</li>
</ul>
<h1 id="centos&#x6700;&#x5C0F;&#x5316;&#x5B89;&#x88C5;&#x4E2D;&#x4F7F;&#x7528;gnome&#x684C;&#x9762;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;vnc&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x8FDE;&#x63A5;&#xFF08;&#x5176;&#x4ED6;&#x684C;&#x9762;&#x73AF;&#x5883;&#xFF09;"><a name="centos&#x6700;&#x5C0F;&#x5316;&#x5B89;&#x88C5;&#x4E2D;&#x4F7F;&#x7528;gnome&#x684C;&#x9762;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;vnc&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x8FDE;&#x63A5;&#xFF08;&#x5176;&#x4ED6;&#x684C;&#x9762;&#x73AF;&#x5883;&#xFF09;" class="anchor-navigation-ex-anchor" href="#centos&#x6700;&#x5C0F;&#x5316;&#x5B89;&#x88C5;&#x4E2D;&#x4F7F;&#x7528;gnome&#x684C;&#x9762;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;vnc&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x8FDE;&#x63A5;&#xFF08;&#x5176;&#x4ED6;&#x684C;&#x9762;&#x73AF;&#x5883;&#xFF09;"><i class="fa fa-link" aria-hidden="true"></i></a>3. CentOS&#x6700;&#x5C0F;&#x5316;&#x5B89;&#x88C5;&#x4E2D;&#x4F7F;&#x7528;gnome&#x684C;&#x9762;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;VNC&#x8FDB;&#x884C;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x8FDE;&#x63A5;&#xFF08;&#x5176;&#x4ED6;&#x684C;&#x9762;&#x73AF;&#x5883;&#xFF09;</h1>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x83B7;&#x53D6;&#x5F53;&#x524D;&#x9ED8;&#x8BA4;&#x9009;&#x9879;</span>
systemctl get-default
<span class="token comment"># &#x5982;&#x679C;&#x8FD4;&#x56DE;&#x503C;&#x4E3A;:multi-user.target &#x547D;&#x4EE4;&#x884C;&#x8F93;&#x5165;&#x4E0B;&#x9762;&#x6307;&#x4EE4;&#x5207;&#x5165;&#x5230;&#x56FE;&#x5F62;&#x754C;&#x9762;:</span>
systemctl set-default graphical.target
<span class="token comment"># &#x5982;&#x679C;&#x9700;&#x8981;&#x6539;&#x56DE;&#x547D;&#x4EE4;&#x884C;&#x6A21;&#x5F0F;,&#x8F93;&#x5165;&#x5982;&#x4E0B;&#x6307;&#x4EE4;</span>
systemctl set-default multi-user.target
</code></pre>
</li>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x6216;&#x8005;&#x8BBE;&#x7F6E;&#x9632;&#x706B;&#x5899;&#x89C4;&#x5219;&#xFF0C;&#x8FD9;&#x91CC;&#x4E3A;&#x4E86;&#x65B9;&#x4FBF;&#x8D77;&#x89C1;</span>
systemctl stop firewalld
yum update
yum groupinstall <span class="token string">&quot;GNOME Desktop&quot;</span> <span class="token string">&quot;X Window System&quot;</span> <span class="token string">&quot;Desktop&quot;</span> 
yum <span class="token function">install</span> tigervnc-server tigervnc vnc vnc-server
<span class="token comment"># &#x62F7;&#x8D1D;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5230;&#x76F8;&#x5E94;&#x76EE;&#x5F55;&#x3002;&#x5E76;&#x6309;&#x7167;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E;&#x4FEE;&#x6539;&#x76F8;&#x5173;&#x5185;&#x5BB9;</span>
<span class="token function">cp</span> /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
</code></pre>
</li>
<li><pre class="language-"><code class="lang-bash">vncpasswd <span class="token comment"># &#x5BF9;&#x5F53;&#x524D;&#x7528;&#x6237;&#x7684;vnc&#x8BBE;&#x7F6E;&#x5BC6;&#x7801;&#xFF0C;&#x6216;&#x8005;&#x7B2C;&#x4E00;&#x6B21;&#x8FD0;&#x884C;vncserver :1</span>
<span class="token function">vim</span> /etc/libvirt/qemu.conf <span class="token comment"># &#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="token comment"># &#x53BB;&#x6389;&#x4EE5;&#x4E0B;&#x4E24;&#x884C;&#x7684;&#x6CE8;&#x91CA;</span>
vnc_password <span class="token operator">=</span> <span class="token string">&quot;123456&quot;</span>
vnc_listen <span class="token operator">=</span> <span class="token string">&quot;0.0.0.0&quot;</span>
</code></pre>
</li>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x91CD;&#x65B0;&#x52A0;&#x8F7D;systemd</span>
systemctl daemon-reload
<span class="token comment"># &#x542F;&#x7528;vnc&#x5230;&#x6307;&#x5B9A;&#x63A5;&#x53E3;</span>
vncserver :1
<span class="token comment"># &#x6700;&#x540E;&#x4F7F;&#x7528;vnc viewer&#x5BA2;&#x6237;&#x7AEF;&#x8FDB;&#x884C;&#x8FDE;&#x63A5;&#x5373;&#x53EF;</span>
</code></pre>
</li>
</ul>
<h1 id="nginx&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#x73AF;&#x5883;centos7"><a name="nginx&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#x73AF;&#x5883;centos7" class="anchor-navigation-ex-anchor" href="#nginx&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#x73AF;&#x5883;centos7"><i class="fa fa-link" aria-hidden="true"></i></a>4. nginx&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;(&#x73AF;&#x5883;CentOS7)</h1>
<h2 id="&#x4F7F;&#x7528;&#x6E90;&#x7801;&#x5B89;&#x88C5;"><a name="&#x4F7F;&#x7528;&#x6E90;&#x7801;&#x5B89;&#x88C5;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;&#x6E90;&#x7801;&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>4.1. &#x4F7F;&#x7528;&#x6E90;&#x7801;&#x5B89;&#x88C5;</h2>
<ul>
<li><p>&#x200B;    &#x5B89;&#x88C5;&#x7F16;&#x8BD1;&#x5DE5;&#x5177;&#x53CA;&#x5E93;&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-bash">yum -y <span class="token function">install</span> <span class="token function">make</span> zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
</code></pre>
</li>
</ul>
<ul>
<li><p>&#x7F16;&#x8BD1;&#x5B89;&#x88C5;PCRE&#x5E93;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token builtin class-name">cd</span> /usr/local/src
<span class="token function">wget</span> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
<span class="token function">tar</span> -zxvf pcre-8.37.tar.gz
<span class="token builtin class-name">cd</span> pcre-8.43
./configure
<span class="token function">make</span>
<span class="token function">make</span> <span class="token function">install</span>
</code></pre>
</li>
</ul>
</li>
<li><p>&#x5B89;&#x88C5;zlib&#x5E93;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token builtin class-name">cd</span> /usr/local/src
<span class="token function">wget</span> http://zlib.net/zlib-1.2.11.tar.gz
<span class="token function">tar</span> -zxvf zlib-1.2.11.tar.gz
<span class="token builtin class-name">cd</span> zlib-1.2.8
./configure
<span class="token function">make</span>
<span class="token function">make</span> <span class="token function">install</span>
</code></pre>
</li>
</ul>
</li>
<li><p>&#x5B89;&#x88C5;ssl</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token builtin class-name">cd</span> /usr/local/src
<span class="token function">wget</span> https://www.openssl.org/source/openssl-1.0.2s.tar.gz
<span class="token function">tar</span> -zxvf openssl-1.0.2s.tar.gz
</code></pre>
</li>
</ul>
</li>
<li><p>&#x5B89;&#x88C5;nginx</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token builtin class-name">cd</span> /usr/local/src
<span class="token function">wget</span> http://nginx.org/download/nginx-1.9.9.tar.gz  
<span class="token function">tar</span> -zxvf nginx-1.9.9.tar.gz  
<span class="token builtin class-name">cd</span> nginx-1.9.9.tar.gz

./configure --sbin-path<span class="token operator">=</span>/usr/local/nginx/sbin <span class="token punctuation">\</span>
--with-http_stub_status_module <span class="token punctuation">\</span>
--conf-path<span class="token operator">=</span>/usr/local/nginx/nginx.conf <span class="token punctuation">\</span>
--pid-path<span class="token operator">=</span>/usr/local/nginx/nginx.pid <span class="token punctuation">\</span>
--with-http_ssl_module <span class="token punctuation">\</span>
--with-pcre<span class="token operator">=</span>/usr/local/src/pcre-8.43 <span class="token punctuation">\</span>
--with-zlib<span class="token operator">=</span>/usr/local/src/zlib-1.2.11 <span class="token punctuation">\</span>
--with-openssl<span class="token operator">=</span>/usr/local/src/openssl-1.0.2s <span class="token punctuation">\</span>
 --prefix<span class="token operator">=</span>/usr/local/webserver/nginx
<span class="token comment"># --with-pcre=/usr/src/pcre-8.34 &#x6307;&#x7684;&#x662F;pcre-8.34 &#x7684;&#x6E90;&#x7801;&#x8DEF;&#x5F84;&#x3002;</span>
<span class="token comment"># --with-zlib=/usr/src/zlib-1.2.7 &#x6307;&#x7684;&#x662F;zlib-1.2.7 &#x7684;&#x6E90;&#x7801;&#x8DEF;&#x5F84;&#x3002;</span>
<span class="token comment">#  --prefix&#x6307;&#x5B9A;nginx&#x5B89;&#x88C5;&#x76EE;&#x5F55;</span>
<span class="token function">make</span>
<span class="token function">make</span> <span class="token function">install</span>
</code></pre>
</li>
</ul>
</li>
<li><p>Nginx&#x914D;&#x7F6E;&#x53CA;&#x6587;&#x4EF6;</p>
</li>
</ul>
<pre class="language-"><code>* ```bash
   [root@localhost conf]\# /usr/sbin/groupadd www 
   [root@localhost conf]\# /usr/sbin/useradd -g www www

    # /usr/local/webserver/nginx/conf/nginx.conf&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#xFF1A;
    user www www;
    worker_processes 2; #&#x8BBE;&#x7F6E;&#x503C;&#x548C;CPU&#x6838;&#x5FC3;&#x6570;&#x4E00;&#x81F4;
    error_log /usr/local/webserver/nginx/logs/nginx_error.log crit; #&#x65E5;&#x5FD7;&#x4F4D;&#x7F6E;&#x548C;&#x65E5;&#x5FD7;&#x7EA7;&#x522B;
    pid /usr/local/webserver/nginx/nginx.pid;
    #Specifies the value for maximum file descriptors that can be opened by this process.
    worker_rlimit_nofile 65535;
    events
    {
      use epoll;
      worker_connections 65535;
    }
    http
    {
    include mime.types;
    default_type application/octet-stream;
    log_format main  &apos;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &apos;
                 &apos;$status $body_bytes_sent &quot;$http_referer&quot; &apos;
                 &apos;&quot;$http_user_agent&quot; $http_x_forwarded_for&apos;;
  #charset gb2312;
    server_names_hash_bucket_size 128;
    client_header_buffer_size 32k;
    large_client_header_buffers 4 32k;
    client_max_body_size 8m;
    sendfile on;
    tcp_nopush on;
    keepalive_timeout 60;
    tcp_nodelay on;
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 64k;
    fastcgi_buffers 4 64k;
    fastcgi_busy_buffers_size 128k;
    fastcgi_temp_file_write_size 128k;
    gzip on; 
    gzip_min_length 1k;
    gzip_buffers 4 16k;
    gzip_http_version 1.0;
    gzip_comp_level 2;
    gzip_types text/plain application/x-javascript text/css application/xml;
    gzip_vary on;
    #limit_zone crawler $binary_remote_addr 10m;
   #&#x4E0B;&#x9762;&#x662F;server&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x7684;&#x914D;&#x7F6E;
   server
    {
      listen 80;#&#x76D1;&#x542C;&#x7AEF;&#x53E3;
      server_name localhost;#&#x57DF;&#x540D;
      index index.html index.htm index.php;
      root /usr/local/webserver/nginx/html;#&#x7AD9;&#x70B9;&#x76EE;&#x5F55;
        location ~ .*\.(php|php5)?$
      {
        #fastcgi_pass unix:/tmp/php-cgi.sock;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
      }
      location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$
      {
        expires 30d;
    # access_log off;
      }
      location ~ .*\.(js|css)?$
      {
        expires 15d;
     # access_log off;
      }
      access_log off;
    }
  }
  ```
</code></pre><ul>
<li><p>&#x542F;&#x52A8;&#x8FC7;&#x7A0B;&#x4E2D;&#x9047;&#x5230;&#x7684;&#x95EE;&#x9898;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x5728;&#x865A;&#x62DF;&#x673A;centos7&#x4E0A;&#x5B89;&#x88C5;nginx&#x4E4B;&#x540E;&#x865A;&#x62DF;&#x673A;&#x5185;&#x80FD;&#x8BBF;&#x95EE;&#xFF0C;&#x771F;&#x673A;&#x4E0D;&#x80FD;&#x8BBF;&#x95EE;&#xFF0C;&#x4FEE;&#x6539;iptables&#x914D;&#x7F6E;&#x4E5F;&#x4E0D;&#x8D77;&#x4F5C;&#x7528;&#xFF0C;&#x6700;&#x540E;&#x4E0A;&#x7F51;&#x67E5;&#x627E;&#x4E86;&#x8D44;&#x6599;&#x540E;&#x624D;&#x53D1;&#x73B0;centos&#x7684;&#x9632;&#x706B;&#x5899;&#x6539;&#x6210;&#x4E86;firewall,&#x4E0D;&#x518D;&#x53EB;iptables,&#x5F00;&#x653E;&#x7AEF;&#x53E3;&#x7684;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</span>
firewall-cmd --zone<span class="token operator">=</span>public --add-port<span class="token operator">=</span><span class="token number">80</span>/tcp --permanent
<span class="token comment"># &#x91CD;&#x542F;&#x9632;&#x706B;&#x5899;</span>
systemctl stop firewalld.service  
systemctl start firewalld.service
</code></pre>
</li>
<li><pre class="language-"><code class="lang-bash"><span class="token comment">#&#x3000;&#x89E3;&#x51B3;CentOS7&#x51FA;&#x73B0;&#x7684;&#x201D;Failed to start firewalld.service&#x201D;&#x95EE;&#x9898;</span>
systemctl unmask firewalld.servic
<span class="token comment">#&#x3000;&#x7136;&#x540E;&#x518D;&#x542F;&#x52A8;&#x201D;systemctl start firewalld.service&#x201D;&#x5373;&#x53EF;&#x89E3;&#x51B3;&#x95EE;&#x9898;&#x6CA1;&#x6709;&#x62A5;&#x9519;&#x3002;</span>
</code></pre>
</li>
</ul>
</li>
</ul>
<h2 id="&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;"><a name="&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>4.2. &#x4F7F;&#x7528;YUM&#x5B89;&#x88C5;</h2>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x5B89;&#x88C5;gcc&#x73AF;&#x5883;</span>
yum <span class="token function">install</span> gcc-c++
<span class="token comment"># &#x5206;&#x522B;&#x5B89;&#x88C5;pcre&#xFF0C;zlib&#xFF0C;openssl</span>
yum <span class="token function">install</span> -y pcre pcre-devel
yum <span class="token function">install</span> -y zlib zlib-devel
yum <span class="token function">install</span> -y openssl openssl-devel
<span class="token comment"># &#x5B89;&#x88C5;nginx&#x670D;&#x52A1;&#xFF0C;&#x4ECE;&#x5B98;&#x7F51;&#x4E0B;&#x8F7D;&#x6E90;&#x7801;&#x8FDB;&#x884C;&#x5B89;&#x88C5;&#xFF0C;</span>
</code></pre>
</li>
</ul>
<h2 id="&#x57FA;&#x7840;&#x7528;&#x6CD5;"><a name="&#x57FA;&#x7840;&#x7528;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x7840;&#x7528;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>4.3. &#x57FA;&#x7840;&#x7528;&#x6CD5;</h2>
<ul>
<li>&#x542F;&#x52A8;&#xFF1A;<code>./nginx</code></li>
<li>&#x505C;&#x6B62;&#xFF1A;<ul>
<li><code>./nginx -s quit</code>:&#x6B64;&#x65B9;&#x5F0F;&#x505C;&#x6B62;&#x6B65;&#x9AA4;&#x662F;&#x5F85;nginx&#x8FDB;&#x7A0B;&#x5904;&#x7406;&#x4EFB;&#x52A1;&#x5B8C;&#x6BD5;&#x8FDB;&#x884C;&#x505C;&#x6B62;</li>
<li><code>./nginx -s stop</code>:&#x6B64;&#x65B9;&#x5F0F;&#x76F8;&#x5F53;&#x4E8E;&#x5148;&#x67E5;&#x51FA;nginx&#x8FDB;&#x7A0B;id&#x518D;&#x4F7F;&#x7528;kill&#x547D;&#x4EE4;&#x5F3A;&#x5236;&#x6740;&#x6389;&#x8FDB;&#x7A0B;</li>
</ul>
</li>
<li>&#x91CD;&#x542F;<code>./nginx -s quit</code>    <code>./nginx</code></li>
</ul>
<h2 id="&#x5176;&#x4ED6;&#x8BBE;&#x7F6E;"><a name="&#x5176;&#x4ED6;&#x8BBE;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;&#x8BBE;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>4.4. &#x5176;&#x4ED6;&#x8BBE;&#x7F6E;</h2>
<h3 id="&#x5F00;&#x673A;&#x81EA;&#x542F;&#x52A8;"><a name="&#x5F00;&#x673A;&#x81EA;&#x542F;&#x52A8;" class="anchor-navigation-ex-anchor" href="#&#x5F00;&#x673A;&#x81EA;&#x542F;&#x52A8;"><i class="fa fa-link" aria-hidden="true"></i></a>4.4.1. &#x5F00;&#x673A;&#x81EA;&#x542F;&#x52A8;</h3>
<p> &#x5373;&#x5728;<code>rc.local</code>&#x589E;&#x52A0;&#x542F;&#x52A8;&#x4EE3;&#x7801;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">vi</span> /etc/rc.local
</code></pre>
<p>&#x589E;&#x52A0;&#x4E00;&#x884C; <code>/usr/local/nginx/sbin/nginx</code>
&#x8BBE;&#x7F6E;&#x6267;&#x884C;&#x6743;&#x9650;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">chmod</span> <span class="token number">755</span> rc.local
</code></pre>
<p>&#x7B2C;&#x4E8C;&#x79CD;&#x65B9;&#x6CD5;&#xFF08;&#x57FA;&#x4E8E;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;&#xFF0C;&#x6240;&#x4EE5;&#x8981;&#x5148;&#x8FDB;&#x884C;&#x4E0B;&#x9762;&#x90A3;&#x4E2A;&#x6B65;&#x9AA4;&#xFF09;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">chkconfig</span> nginx on
</code></pre>
<h2 id="&#x6DFB;&#x52A0;&#x4E3A;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;"><a name="&#x6DFB;&#x52A0;&#x4E3A;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;&#x4E3A;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>4.5. &#x6DFB;&#x52A0;&#x4E3A;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;</h2>
<pre class="language-"><code class="lang-bash"><span class="token function">vi</span> /etc/init.d/nginx
</code></pre>
<p>&#x63D2;&#x5165;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;</p>
<pre class="language-"><code class="lang-shell"><span class="token shebang important">#! /bin/bash</span>
<span class="token comment"># chkconfig: - 85 15</span>
<span class="token assign-left variable"><span class="token environment constant">PATH</span></span><span class="token operator">=</span>/usr/local/nginx
<span class="token assign-left variable">DESC</span><span class="token operator">=</span><span class="token string">&quot;nginx daemon&quot;</span>
<span class="token assign-left variable">NAME</span><span class="token operator">=</span>nginx
<span class="token assign-left variable">DAEMON</span><span class="token operator">=</span><span class="token environment constant">$PATH</span>/sbin/<span class="token variable">$NAME</span>
<span class="token assign-left variable">CONFIGFILE</span><span class="token operator">=</span><span class="token environment constant">$PATH</span>/conf/<span class="token variable">$NAME</span>.conf
<span class="token assign-left variable">PIDFILE</span><span class="token operator">=</span><span class="token environment constant">$PATH</span>/logs/<span class="token variable">$NAME</span>.pid
<span class="token assign-left variable">SCRIPTNAME</span><span class="token operator">=</span>/etc/init.d/<span class="token variable">$NAME</span>
<span class="token builtin class-name">set</span> -e
<span class="token punctuation">[</span> -x <span class="token string">&quot;<span class="token variable">$DAEMON</span>&quot;</span> <span class="token punctuation">]</span> <span class="token operator">||</span> <span class="token builtin class-name">exit</span> <span class="token number">0</span>
<span class="token function-name function">do_start</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token variable">$DAEMON</span> -c <span class="token variable">$CONFIGFILE</span> <span class="token operator">||</span> <span class="token builtin class-name">echo</span> -n <span class="token string">&quot;nginx already running&quot;</span>
<span class="token punctuation">}</span>
<span class="token function-name function">do_stop</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token variable">$DAEMON</span> -s stop <span class="token operator">||</span> <span class="token builtin class-name">echo</span> -n <span class="token string">&quot;nginx not running&quot;</span>
<span class="token punctuation">}</span>
<span class="token function-name function">do_reload</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
<span class="token variable">$DAEMON</span> -s reload <span class="token operator">||</span> <span class="token builtin class-name">echo</span> -n <span class="token string">&quot;nginx can&apos;t reload&quot;</span>
<span class="token punctuation">}</span>
<span class="token keyword">case</span> <span class="token string">&quot;<span class="token variable">$1</span>&quot;</span> <span class="token keyword">in</span>
start<span class="token punctuation">)</span>
<span class="token builtin class-name">echo</span> -n <span class="token string">&quot;Starting <span class="token variable">$DESC</span>: <span class="token variable">$NAME</span>&quot;</span>
do_start
<span class="token builtin class-name">echo</span> <span class="token string">&quot;.&quot;</span>
<span class="token punctuation">;</span><span class="token punctuation">;</span>
stop<span class="token punctuation">)</span>
<span class="token builtin class-name">echo</span> -n <span class="token string">&quot;Stopping <span class="token variable">$DESC</span>: <span class="token variable">$NAME</span>&quot;</span>
do_stop
<span class="token builtin class-name">echo</span> <span class="token string">&quot;.&quot;</span>
<span class="token punctuation">;</span><span class="token punctuation">;</span>
reload<span class="token operator">|</span>graceful<span class="token punctuation">)</span>
<span class="token builtin class-name">echo</span> -n <span class="token string">&quot;Reloading <span class="token variable">$DESC</span> configuration...&quot;</span>
do_reload
<span class="token builtin class-name">echo</span> <span class="token string">&quot;.&quot;</span>
<span class="token punctuation">;</span><span class="token punctuation">;</span>
restart<span class="token punctuation">)</span>
<span class="token builtin class-name">echo</span> -n <span class="token string">&quot;Restarting <span class="token variable">$DESC</span>: <span class="token variable">$NAME</span>&quot;</span>
do_stop
do_start
<span class="token builtin class-name">echo</span> <span class="token string">&quot;.&quot;</span>
<span class="token punctuation">;</span><span class="token punctuation">;</span>
*<span class="token punctuation">)</span>
<span class="token builtin class-name">echo</span> <span class="token string">&quot;Usage: <span class="token variable">$SCRIPTNAME</span> {start|stop|reload|restart}&quot;</span> <span class="token operator">&gt;</span><span class="token file-descriptor important">&amp;2</span>
<span class="token builtin class-name">exit</span> <span class="token number">3</span>
<span class="token punctuation">;</span><span class="token punctuation">;</span>
<span class="token keyword">esac</span>
<span class="token builtin class-name">exit</span> <span class="token number">0</span>
</code></pre>
<p>&#x8BBE;&#x7F6E;&#x6267;&#x884C;&#x6743;&#x9650;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">chmod</span> a+x /etc/init.d/nginx
</code></pre>
<p>&#x6CE8;&#x518C;&#x6210;&#x670D;&#x52A1;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">chkconfig</span> --add nginx
</code></pre>
<h1 id="apache&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#xFF08;&#x5B89;&#x88C5;&#x73AF;&#x5883;centos7&#xFF09;"><a name="apache&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#xFF08;&#x5B89;&#x88C5;&#x73AF;&#x5883;centos7&#xFF09;" class="anchor-navigation-ex-anchor" href="#apache&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#xFF08;&#x5B89;&#x88C5;&#x73AF;&#x5883;centos7&#xFF09;"><i class="fa fa-link" aria-hidden="true"></i></a>5. Apache&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#xFF08;&#x5B89;&#x88C5;&#x73AF;&#x5883;CentOS7&#xFF09;</h1>
<h2 id="&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;"><a name="&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;yum&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>5.1. &#x4F7F;&#x7528;YUM&#x5B89;&#x88C5;</h2>
<ul>
<li><p>&#x5B89;&#x88C5;httpd(apache&#x670D;&#x52A1;&#x7684;&#x8F6F;&#x4EF6;&#x53EB;&#x505A;httpd)</p>
<ul>
<li><pre class="language-"><code class="lang-bash">yum <span class="token function">install</span> -y httpd
</code></pre>
</li>
</ul>
</li>
<li><p>&#x5C06;Apache&#x670D;&#x52A1;&#x6DFB;&#x52A0;&#x5230; &#x5F00;&#x673A;&#x81EA;&#x542F;&#x4E2D;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x6253;&#x5F00;apache&#x670D;&#x52A1;    </span>
systemctl start httpd
<span class="token comment"># &#x8BBE;&#x7F6E;&#x5F00;&#x673A;&#x81EA;&#x542F;</span>
systemctl <span class="token builtin class-name">enable</span> httpd
</code></pre>
</li>
</ul>
</li>
</ul>
<h2 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BE6;&#x60C5;"><a name="&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BE6;&#x60C5;" class="anchor-navigation-ex-anchor" href="#&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BE6;&#x60C5;"><i class="fa fa-link" aria-hidden="true"></i></a>5.2. &#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BE6;&#x60C5;</h2>
<ul>
<li>&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x76EE;&#x5F55;</li>
</ul>
<table>
<thead>
<tr>
<th>&#x670D;&#x52A1;&#x76EE;&#x5F55;</th>
<th>/etc/httpd</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x4E3B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</td>
<td>/etc/httpd/conf/httpd.conf</td>
</tr>
<tr>
<td>&#x7F51;&#x7AD9;&#x6570;&#x636E;&#x76EE;&#x5F55;</td>
<td>/var/www/html</td>
</tr>
<tr>
<td>&#x8BBF;&#x95EE;&#x65E5;&#x5FD7;</td>
<td>/var/log/httpd/access_log</td>
</tr>
<tr>
<td>&#x9519;&#x8BEF;&#x65E5;&#x5FD7;</td>
<td>/var/log/httpd/error_log</td>
</tr>
</tbody>
</table>
<ul>
<li><p><code>httpd.conf</code>&#x4E2D;&#x7684;&#x6709;&#x7528;&#x8BBE;&#x7F6E;</p>
<ul>
<li><pre class="language-"><code class="lang-shell"><span class="token comment">#&#x670D;&#x52A1;&#x5668;&#x6839;&#x76EE;&#x5F55;</span>
ServerRoot <span class="token string">&quot;/etc/httpd&quot;</span>

<span class="token comment">#&#x7AEF;&#x53E3;</span>
<span class="token comment">#Listen 12.34.56.78:80</span>
Listen <span class="token number">80</span>

<span class="token comment">#&#x57DF;&#x540D;+&#x7AEF;&#x53E3;&#x6765;&#x6807;&#x8BC6;&#x670D;&#x52A1;&#x5668;&#xFF0C;&#x6CA1;&#x6709;&#x57DF;&#x540D;&#x7528;ip&#x4E5F;&#x53EF;&#x4EE5;</span>
<span class="token comment">#ServerName www.example.com:80</span>

<span class="token comment">#&#x4E0D;&#x8BB8;&#x8BBF;&#x95EE;&#x6839;&#x76EE;&#x5F55;</span>
<span class="token operator">&lt;</span>Directory /<span class="token operator">&gt;</span>
   AllowOverride none
   Require all denied
<span class="token operator">&lt;</span>/Directory<span class="token operator">&gt;</span>

<span class="token comment"># &#x6587;&#x6863;&#x76EE;&#x5F55;</span>
DocumentRoot <span class="token string">&quot;/var/www/html&quot;</span>

<span class="token comment"># &#x5BF9; /var/www&#x76EE;&#x5F55;&#x8BBF;&#x95EE;&#x9650;&#x5236;</span>
<span class="token operator">&lt;</span>Directory <span class="token string">&quot;/var/www&quot;</span><span class="token operator">&gt;</span>
   AllowOverride None
   <span class="token comment"># Allow open access:</span>
   Require all granted
<span class="token operator">&lt;</span>/Directory<span class="token operator">&gt;</span>

<span class="token comment"># &#x5BF9;/var/www/html&#x76EE;&#x5F55;&#x8BBF;&#x95EE;&#x9650;&#x5236;</span>
<span class="token operator">&lt;</span>Directory <span class="token string">&quot;/var/www/html&quot;</span><span class="token operator">&gt;</span>
&#x3000;&#x3000; Options Indexes FollowSymLinks
&#x3000;&#x3000; AllowOverride None
&#x3000;&#x3000;Require all granted
<span class="token operator">&lt;</span>/Directory<span class="token operator">&gt;</span>

<span class="token comment"># &#x9ED8;&#x8BA4;&#x7F16;&#x7801;</span>
AddDefaultCharset UTF-8

<span class="token comment">#EnableMMAP off</span>
EnableSendfile on

<span class="token comment"># include&#x8FDB;&#x6765;&#x5176;&#x5B83;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>

IncludeOptional conf.d/*.conf
</code></pre>
</li>
</ul>
</li>
</ul>
<h2 id="apache&#x7684;&#x4F7F;&#x7528;"><a name="apache&#x7684;&#x4F7F;&#x7528;" class="anchor-navigation-ex-anchor" href="#apache&#x7684;&#x4F7F;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>5.3. Apache&#x7684;&#x4F7F;&#x7528;</h2>
<ul>
<li><p>&#x4F7F;&#x7528;<code>systemctl [option] httpd</code>&#x6765;&#x505C;&#x6B62;&#xFF0C;&#x91CD;&#x542F;&#xFF0C;&#x5F00;&#x542F;&#x670D;&#x52A1;</p>
</li>
<li><p>&#x4FEE;&#x6539; &#x7F51;&#x7AD9;&#x6570;&#x636E;&#x7684;&#x4E3B;&#x76EE;&#x5F55;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x8BBE;&#x7F6E;&#x7F51;&#x7AD9;&#x6570;&#x636E;&#x7684;&#x4E3B;&#x76EE;&#x5F55;</span>
<span class="token function">mkdir</span> /wwwroot/www
<span class="token builtin class-name">echo</span> <span class="token string">&quot;hello suofeiya from new DIR&quot;</span> <span class="token operator">&gt;</span> /wwwroot/www/index.html
<span class="token comment"># &#x4FEE;&#x6539;DocumentRoot&#x5730;&#x5740;&#x4E3A;&#x81EA;&#x5B9A;&#x4E49;&#x5730;&#x5740;</span>
</code></pre>
</li>
</ul>
</li>
</ul>
<h1 id="dhcp&#x670D;&#x52A1;"><a name="dhcp&#x670D;&#x52A1;" class="anchor-navigation-ex-anchor" href="#dhcp&#x670D;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>6. DHCP&#x670D;&#x52A1;</h1>
<ul>
<li>&#x671F;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7ED3;&#x5C3E;&#x4EE5;&#x5206;&#x53F7;&#x201C;;&#x201D;&#x5206;&#x5F00;&#xFF08;&#x9664;{}&#xFF09;&#xFF0C;&#x6CE8;&#x610F;&#xFF01;</li>
<li></li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; AGou 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-03-02 20:42:24
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html" class="navigation navigation-prev " aria-label="Previous page: Linux启动流程、内核、grub、模块等">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Linux状态信息.html" class="navigation navigation-next " aria-label="Next page: Linux状态信息">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Linux服务器","level":"1.4.3","depth":2,"next":{"title":"Linux状态信息","level":"1.4.4","depth":2,"path":"Linux/Linux状态信息.md","ref":"Linux/Linux状态信息.md","articles":[]},"previous":{"title":"Linux启动流程、内核、grub、模块等","level":"1.4.2","depth":2,"path":"Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.md","ref":"Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github@^2.0.0","edit-link@^2.0.2","anchors@^0.7.1","include-codeblock@^3.0.2","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","anchor-navigation-ex@0.1.8","prism","-highlight","insert-logo","-lunr","-search","search-pro","splitter","lightbox","github-buttons","-sharing","sharing-plus","donate","code","-klipse","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © AGou 2020","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"github":{"url":"https://github.com/AGou-ops"},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"https://agou-ops.github.io/images/alipay.png","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"https://agou-ops.github.io/images/wechatpay.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"isRewritePageTitle":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"lightbox":{"jquery":true,"sameUuid":false},"github-buttons":{"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"},"expandable-chapters-small":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"edit-link":{"label":"Edit This Page","base":"https://github.com/AGou-ops/myStudyNote"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"insert-logo":{"style":"background: none; max-height: 50px; min-height: 50px","url":"https://s2.ax1x.com/2019/12/10/QBD0xO.jpg"}},"theme":"default","author":"AGou","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AGou's StudyNote","language":"zh-hans","output.name":"site","links":{"sidebar":{"◆点击进入我的个人博客":"http://agou-ops.github.io"}},"gitbook":"3.2.3","description":"岂能尽如人意，但求无愧我心。"},"file":{"path":"Linux/Linux服务器.md","mtime":"2020-03-02T12:42:24.288Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-02T12:42:32.383Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

